@extends('../manage.layout')
@section('content')
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            站点信息管理
            <small>更改站点信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/manage"><i class="fa fa-dashboard"></i>首页</a></li>
            <li class="active">更改站点信息</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content animated fadeInRight">
        <div class="row">
            <div class="col-md-12">
                <!-- general form elements -->
                <div class="box-body table-responsive no-padding">
                    <div class="box box-primary">
                        <!-- /.box-header -->
                        <!-- form start -->
                        <form method="post" action="{{ url('manage/config/' . $config['id']) }}" enctype=”multipart/form-data”>
                            {{ method_field('PUT') }}
                            {{--{{ csrf_field() }}--}}
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">

                            <div class="box-body">
                                {{--<div class="form-group">--}}
                                    {{--<label for="name">网站名称</label>--}}
                                    {{--<input type="text" id="name" class="form-control" name="name" value="{{ $config['name'] }}" required="required">--}}
                                {{--</div>--}}
                                {{--<div class="form-group">--}}
                                    {{--<label for="rank">权重</label>--}}
                                    {{--<input type="number" min="0" class="form-control" id="rank" name="rank" value="{{ $config['rank'] }}" required="required">--}}
                                {{--</div>--}}
                                <div class="form-group">
                                    <label for="title">标题</label>
                                    <input type="text" class="form-control" name="title" id="title" value="{{ $config['title'] }}" required="required">
                                </div>
                                <div class="form-group">
                                    <label for="keyword">关键词</label>
                                    <input type="text" class="form-control" name="keyword" id="keyword" value="{{ $config['keyword'] }}" required="required">
                                </div>
                                <div class="form-group">
                                    <label for="description">描述</label>
                                    <textarea class="form-control" name="description" id="description" required="required">{{ $config['description'] }}</textarea>
                                </div>
                                {{--<div class="form-group">--}}
                                    {{--<label for="script">脚本代码</label>--}}
                                    {{--<textarea class="form-control" name="script" id="script" required="required">{{ $config['script'] }}</textarea>--}}
                                {{--</div>--}}
                            </div>
                            <!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">确定</button>&nbsp;&nbsp;
                            </div>
                         </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
@endsection
@section('script')
    <script src="/plugin/jquery/jquery-2.2.1.min.js"></script>
    <script src="/plugin/layer-2.4/layer.js"></script>
@endsection
